Fix warnings about unused variables
authorTobias Hunger <tobias.hunger@gmail.com>
Fri, 30 Aug 2013 08:32:37 +0000 (10:32 +0200)
committerColin Walters <walters@verbum.org>
Fri, 30 Aug 2013 18:23:45 +0000 (14:23 -0400)
24 files changed:
src/libostree/ostree-core.c
src/libostree/ostree-repo-checkout.c
src/libostree/ostree-repo-file.c
src/libostree/ostree-repo-prune.c
src/libostree/ostree-repo-pull.c
src/libostree/ostree-repo-refs.c
src/libostree/ostree-repo-traverse.c
src/libostree/ostree-repo.c
src/ostree/ot-admin-builtin-diff.c
src/ostree/ot-admin-builtin-undeploy.c
src/ostree/ot-admin-builtin-upgrade.c
src/ostree/ot-admin-cleanup.c
src/ostree/ot-admin-deploy.c
src/ostree/ot-admin-functions.c
src/ostree/ot-bootloader-uboot.c
src/ostree/ot-builtin-checkout.c
src/ostree/ot-builtin-fsck.c
src/ostree/ot-builtin-ls.c
src/ostree/ot-builtin-pull-local.c
src/ostree/ot-builtin-rev-parse.c
src/ostree/ot-builtin-show.c
src/ostree/ot-builtin-trivial-httpd.c
src/ostree/ot-builtin-write-refs.c
src/ostree/ot-dump.c

index 430315793305f93926e8ed8539e09b1550a838d5..14426d863b720fd382f32aa92da4206e5c683722 100644 (file)
@@ -163,7 +163,6 @@ ostree_validate_rev (const char *rev,
                      GError **error)
 {
   gboolean ret = FALSE;
-  gs_unref_ptrarray GPtrArray *components = NULL;
   GMatchInfo *match = NULL;
 
   static gsize regex_initialized;
@@ -630,7 +629,6 @@ ostree_content_stream_parse (gboolean                compressed,
   guchar dummy[4];
   gsize bytes_read;
   gs_unref_object GInputStream *ret_input = NULL;
-  gs_unref_object GFileInfo *content_file_info = NULL;
   gs_unref_object GFileInfo *ret_file_info = NULL;
   gs_unref_variant GVariant *ret_xattrs = NULL;
   gs_unref_variant GVariant *file_header = NULL;
@@ -1664,7 +1662,6 @@ ostree_create_temp_file_from_input (GFile            *dir,
   GError *temp_error = NULL;
   int i = 0;
   gs_unref_object GFile *possible_file = NULL;
-  gs_free guchar *ret_csum = NULL;
 
   /* 128 attempts seems reasonable... */
   for (i = 0; i < 128; i++)
index 5a7f446efde74d957ab0a7cecc3f41c4e4d683c8..1e50f11b74cf9afd22237b56e29a73204c6a60e7 100644 (file)
@@ -127,7 +127,6 @@ checkout_file_hardlink (OstreeRepo                  *self,
 {
   gboolean ret = FALSE;
   gboolean ret_was_supported = FALSE;
-  gs_unref_object GFile *dir = NULL;
 
  again:
   if (dirfd != -1 &&
@@ -398,7 +397,6 @@ ostree_repo_checkout_tree (OstreeRepo               *self,
                            GError                  **error)
 {
   gboolean ret = FALSE;
-  gs_unref_object GFileInfo *file_info = NULL;
   gs_unref_variant GVariant *xattrs = NULL;
   gs_unref_object GFileEnumerator *dir_enum = NULL;
 
index 352ace7f8c722a846b664706ebd5feb1f70a53e6..9d1650bcaad1d66e16ab48dec62aff56a0663062 100644 (file)
@@ -844,7 +844,6 @@ ostree_repo_file_tree_query_child (OstreeRepoFile  *self,
   gs_unref_object GFileInfo *ret_info = NULL;
   gs_unref_variant GVariant *files_variant = NULL;
   gs_unref_variant GVariant *dirs_variant = NULL;
-  gs_unref_variant GVariant *tree_child_metadata = NULL;
   gs_unref_variant GVariant *content_csum_v = NULL;
   gs_unref_variant GVariant *meta_csum_v = NULL;
   char tmp_checksum[65];
@@ -974,7 +973,6 @@ ostree_repo_file_read (GFile         *file,
   gboolean ret = FALSE;
   OstreeRepoFile *self = OSTREE_REPO_FILE (file);
   const char *checksum;
-  gs_unref_object GFile *local_file = NULL;
   gs_unref_object GInputStream *ret_stream = NULL;
 
   if (!ostree_repo_file_ensure_resolved (self, error))
index f04290275117dc3ba33a266bed7849f3a7413d22..caef29e79a026ed0943451e58912c2ab85ef0990 100644 (file)
@@ -127,7 +127,6 @@ ostree_repo_prune (OstreeRepo        *self,
   gpointer key, value;
   gs_unref_hashtable GHashTable *objects = NULL;
   gs_unref_hashtable GHashTable *all_refs = NULL;
-  gs_free char *formatted_freed_size = NULL;
   OtPruneData data = { 0, };
   gboolean refs_only = flags & OSTREE_REPO_PRUNE_FLAGS_REFS_ONLY;
 
index f99296f76b1efda5dd5490c9bb7093ae834dd7b6..da6a5a1e4913b242f813495a0e15938dc17da07f 100644 (file)
@@ -177,7 +177,6 @@ static gboolean
 uri_fetch_update_status (gpointer user_data)
 {
   OtPullData *pull_data = user_data;
-  gs_free char *fetcher_status = NULL;
   GString *status;
   guint outstanding_stages;
   guint outstanding_fetches;
@@ -354,9 +353,7 @@ fetch_uri_contents_utf8_sync (OtPullData  *pull_data,
 {
   gboolean ret = FALSE;
   gsize len;
-  gs_unref_object GFile *tmpf = NULL;
   gs_free char *ret_contents = NULL;
-  gs_unref_object SoupRequest *request = NULL;
   OstreeFetchUriSyncData fetch_data = { 0, };
 
   if (g_cancellable_set_error_if_cancelled (cancellable, error))
@@ -401,7 +398,6 @@ scan_dirtree_object (OtPullData   *pull_data,
   gs_unref_variant GVariant *tree = NULL;
   gs_unref_variant GVariant *files_variant = NULL;
   gs_unref_variant GVariant *dirs_variant = NULL;
-  gs_unref_object GFile *stored_path = NULL;
 
   if (recursion_depth > OSTREE_MAX_RECURSION)
     {
@@ -454,7 +450,6 @@ scan_dirtree_object (OtPullData   *pull_data,
       const char *dirname;
       gs_unref_variant GVariant *tree_csum = NULL;
       gs_unref_variant GVariant *meta_csum = NULL;
-      gs_free char *tmp_checksum = NULL;
 
       g_variant_get_child (dirs_variant, i, "(&s@ay@ay)",
                            &dirname, &tree_csum, &meta_csum);
@@ -561,10 +556,7 @@ content_fetch_on_complete (GObject        *object,
   GError **error = &local_error;
   GCancellable *cancellable = NULL;
   guint64 length;
-  gs_unref_variant GVariant *file_meta = NULL;
   gs_unref_object GFileInfo *file_info = NULL;
-  gs_unref_object GInputStream *content_input = NULL;
-  gs_unref_object GInputStream *file_object_input = NULL;
   gs_unref_variant GVariant *xattrs = NULL;
   gs_unref_object GInputStream *file_in = NULL;
   gs_unref_object GInputStream *object_input = NULL;
@@ -698,10 +690,8 @@ scan_commit_object (OtPullData         *pull_data,
 {
   gboolean ret = FALSE;
   gs_unref_variant GVariant *commit = NULL;
-  gs_unref_variant GVariant *related_objects = NULL;
   gs_unref_variant GVariant *tree_contents_csum = NULL;
   gs_unref_variant GVariant *tree_meta_csum = NULL;
-  gs_free char *tmp_checksum = NULL;
   GVariantIter *iter = NULL;
 
   if (recursion_depth > OSTREE_MAX_RECURSION)
@@ -1126,14 +1116,12 @@ ostree_repo_pull (OstreeRepo               *self,
   gboolean tls_permissive = FALSE;
   OstreeFetcherConfigFlags fetcher_flags = 0;
   gs_free char *remote_key = NULL;
-  gs_free char *remote_config_content = NULL;
   gs_free char *path = NULL;
   gs_free char *baseurl = NULL;
   gs_free char *summary_data = NULL;
   gs_unref_hashtable GHashTable *requested_refs_to_fetch = NULL;
   gs_unref_hashtable GHashTable *updated_refs = NULL;
   gs_unref_hashtable GHashTable *commits_to_fetch = NULL;
-  gs_free char *branch_rev = NULL;
   gs_free char *remote_mode_str = NULL;
   GSource *queue_src = NULL;
   OtPullData pull_data_real = { 0, };
@@ -1308,9 +1296,6 @@ ostree_repo_pull (OstreeRepo               *self,
     {
       const char *ref = key;
       const char *sha256 = value;
-      gs_free char *key = NULL;
-      gs_free char *remote_ref = NULL;
-      gs_free char *baseurl = NULL;
 
       ot_waitable_queue_push (pull_data->metadata_objects_to_scan,
                               pull_worker_message_new (PULL_MSG_SCAN,
index beb481e26f604c358a70fe38decc21dd7b8eada5..cff496fc20da2773dee103cbcacc30c3fbbab5ba 100644 (file)
@@ -283,11 +283,8 @@ resolve_refspec (OstreeRepo     *self,
   gboolean ret = FALSE;
   __attribute__((unused)) GCancellable *cancellable = NULL;
   GError *temp_error = NULL;
-  gs_free char *tmp = NULL;
-  gs_free char *tmp2 = NULL;
   gs_free char *ret_rev = NULL;
   gs_unref_object GFile *child = NULL;
-  gs_unref_object GFile *origindir = NULL;
   
   g_return_val_if_fail (ref != NULL, FALSE);
 
index d15fc6ca9aa480d592c40ca3509a3746db2bef48..65493284007777be1ef3bcec000de80920fab260 100644 (file)
@@ -156,7 +156,6 @@ ostree_repo_traverse_commit (OstreeRepo      *repo,
   while (TRUE)
     {
       gboolean recurse = FALSE;
-      gs_unref_variant GVariant *parent_csum_bytes = NULL;
       gs_unref_variant GVariant *meta_csum_bytes = NULL;
       gs_unref_variant GVariant *content_csum_bytes = NULL;
       gs_unref_variant GVariant *key = NULL;
index 713f37daa30c2bd0bcf935e1999ba8ea653dd02b..3fe429d87ce09587308f647da3a32794a7cd9d97 100644 (file)
@@ -550,7 +550,6 @@ stage_object (OstreeRepo         *self,
   const char *actual_checksum;
   gboolean do_commit;
   OstreeRepoMode repo_mode;
-  gs_unref_object GFileInfo *temp_info = NULL;
   gs_unref_object GFile *temp_file = NULL;
   gs_unref_object GFile *raw_temp_file = NULL;
   gs_unref_object GFile *stored_path = NULL;
@@ -832,7 +831,6 @@ scan_loose_devino (OstreeRepo                     *self,
   guint i;
   OstreeRepoMode repo_mode;
   gs_unref_ptrarray GPtrArray *object_dirs = NULL;
-  gs_unref_object GFile *objdir = NULL;
 
   if (self->parent_repo)
     {
@@ -2095,7 +2093,6 @@ list_loose_objects (OstreeRepo                     *self,
   gboolean ret = FALSE;
   guint i;
   gs_unref_ptrarray GPtrArray *object_dirs = NULL;
-  gs_unref_object GFile *objdir = NULL;
 
   if (!get_loose_object_dirs (self, &object_dirs, cancellable, error))
     goto out;
@@ -2203,9 +2200,7 @@ ostree_repo_load_file (OstreeRepo         *self,
 {
   gboolean ret = FALSE;
   OstreeRepoMode repo_mode;
-  gs_unref_variant GVariant *file_data = NULL;
   gs_unref_object GFile *loose_path = NULL;
-  gs_unref_object GFileInfo *content_loose_info = NULL;
   gs_unref_object GInputStream *ret_input = NULL;
   gs_unref_object GFileInfo *ret_file_info = NULL;
   gs_unref_variant GVariant *ret_xattrs = NULL;
index eb0a40db346d390b98a79e4717a0915e4d6333b0..1758422e71742f93eb9bd33007f55cafa09ab28a 100644 (file)
@@ -41,11 +41,9 @@ ot_admin_builtin_diff (int argc, char **argv, GFile *sysroot, GCancellable *canc
 {
   GOptionContext *context;
   gboolean ret = FALSE;
-  gs_free char *booted_osname = NULL;
   gs_unref_object GFile *repo_path = NULL;
   gs_unref_object OtDeployment *deployment = NULL;
   gs_unref_object GFile *deployment_dir = NULL;
-  gs_unref_object GFile *deploy_parent = NULL;
   gs_unref_ptrarray GPtrArray *modified = NULL;
   gs_unref_ptrarray GPtrArray *removed = NULL;
   gs_unref_ptrarray GPtrArray *added = NULL;
index 28f43638e83c0ba4e1889cd19153c9b66b7ec3c2..0386bba149965ee9ba1124b66087591dab2250fe 100644 (file)
@@ -42,8 +42,6 @@ ot_admin_builtin_undeploy (int argc, char **argv, GFile *sysroot, GCancellable *
   int deploy_index;
   int current_bootversion;
   gs_unref_ptrarray GPtrArray *current_deployments = NULL;
-  gs_unref_ptrarray GPtrArray *new_deployments = NULL;
-  gs_free char *revision = NULL;
   gs_unref_object OtDeployment *booted_deployment = NULL;
   gs_unref_object OtDeployment *target_deployment = NULL;
 
index 2b56be3990a1c4ea181ce46cb37d601e2681a77d..f16edd31c10217331315767f5eeab9942ccfa6fd 100644 (file)
@@ -47,7 +47,6 @@ ot_admin_builtin_upgrade (int argc, char **argv, GFile *sysroot, GCancellable *c
 {
   gboolean ret = FALSE;
   GOptionContext *context;
-  gs_free char *booted_osname = NULL;
   gs_unref_object OstreeRepo *repo = NULL;
   gs_unref_object GFile *repo_path = NULL;
   gs_free char *origin_refspec = NULL;
@@ -61,7 +60,6 @@ ot_admin_builtin_upgrade (int argc, char **argv, GFile *sysroot, GCancellable *c
   gs_unref_ptrarray GPtrArray *current_deployments = NULL;
   gs_unref_ptrarray GPtrArray *new_deployments = NULL;
   gs_unref_object OtDeployment *new_deployment = NULL;
-  gs_free char *ostree_dir_arg = NULL;
   int current_bootversion;
   int new_bootversion;
   GKeyFile *origin;
index 9c2560f3dadb8bc69705d473711470f032dbf8d1..8b2920bb1d6ab1e03693beab00830efacacba48e 100644 (file)
@@ -102,7 +102,6 @@ list_all_deployment_directories (GFile               *sysroot,
   gboolean ret = FALSE;
   gs_unref_object GFileEnumerator *dir_enum = NULL;
   gs_unref_object GFile *deploydir = NULL;
-  gs_unref_object GFile *osdir = NULL;
   gs_unref_ptrarray GPtrArray *ret_deployments = NULL;
   GError *temp_error = NULL;
 
@@ -189,7 +188,6 @@ list_all_boot_directories (GFile               *sysroot,
   gboolean ret = FALSE;
   gs_unref_object GFileEnumerator *dir_enum = NULL;
   gs_unref_object GFile *boot_ostree = NULL;
-  gs_unref_object GFile *osdir = NULL;
   gs_unref_ptrarray GPtrArray *ret_bootdirs = NULL;
   GError *temp_error = NULL;
 
@@ -256,7 +254,6 @@ cleanup_other_bootversions (GFile               *sysroot,
   gboolean ret = FALSE;
   int cleanup_bootversion;
   int cleanup_subbootversion;
-  gs_free char *cleanup_boot_name = NULL;
   gs_unref_object GFile *cleanup_boot_dir = NULL;
 
   cleanup_bootversion = bootversion == 0 ? 1 : 0;
@@ -432,8 +429,6 @@ generate_deployment_refs_and_prune (GFile               *sysroot,
   guint i;
   gint n_objects_total, n_objects_pruned;
   guint64 freed_space;
-  gs_free char *cleanup_boot_name = NULL;
-  gs_unref_object GFile *cleanup_boot_dir = NULL;
 
   cleanup_bootversion = (bootversion == 0) ? 1 : 0;
   cleanup_subbootversion = (subbootversion == 0) ? 1 : 0;
index 69a05d2b9c8810501b27695a10b26a37e0938b63..44eee3a063ebf9a9ba615ff7b713d62f56f8d5c3 100644 (file)
@@ -133,8 +133,6 @@ merge_etc_changes (GFile          *orig_etc,
                    GError        **error)
 {
   gboolean ret = FALSE;
-  gs_unref_object GFile *ostree_etc = NULL;
-  gs_unref_object GFile *tmp_etc = NULL;
   gs_unref_ptrarray GPtrArray *modified = NULL;
   gs_unref_ptrarray GPtrArray *removed = NULL;
   gs_unref_ptrarray GPtrArray *added = NULL;
@@ -213,9 +211,7 @@ checkout_deployment_tree (GFile             *sysroot,
   const char *csum = ot_deployment_get_csum (deployment);
   gs_unref_object OstreeRepoFile *root = NULL;
   gs_unref_object GFileInfo *file_info = NULL;
-  gs_unref_object GFileInfo *existing_checkout_info = NULL;
   gs_free char *checkout_target_name = NULL;
-  gs_free char *checkout_target_tmp_name = NULL;
   gs_unref_object GFile *osdeploy_path = NULL;
   gs_unref_object GFile *deploy_target_path = NULL;
   gs_unref_object GFile *deploy_parent = NULL;
@@ -378,7 +374,6 @@ get_kernel_from_tree (GFile         *deployroot,
   gboolean ret = FALSE;
   gs_unref_object GFile *bootdir = g_file_get_child (deployroot, "boot");
   gs_unref_object GFileEnumerator *dir_enum = NULL;
-  gs_unref_object GFileInfo *file_info = NULL;
   gs_unref_object GFile *ret_kernel = NULL;
   gs_unref_object GFile *ret_initramfs = NULL;
 
@@ -703,7 +698,6 @@ swap_bootlinks (GFile        *sysroot,
   gs_unref_object GFile *ostree_bootdir = g_file_resolve_relative_path (ostree_dir, ostree_bootdir_name);
   gs_free char *ostree_subbootdir_name = NULL;
   gs_unref_object GFile *ostree_subbootdir = NULL;
-  gs_unref_ptrarray GPtrArray *deployments_to_swap = NULL;
 
   if (!ot_admin_read_current_subbootversion (sysroot, current_bootversion,
                                              &old_subbootversion,
@@ -1066,19 +1060,13 @@ ot_admin_deploy (GFile             *sysroot,
   gboolean ret = FALSE;
   OtDeployment *new_deployment;
   gs_unref_object OtDeployment *merge_deployment = NULL;
-  gs_unref_object GFile *rootfs = NULL;
   gs_unref_object OstreeRepo *repo = NULL;
   gs_unref_object GFile *commit_root = NULL;
   gs_unref_object GFile *tree_kernel_path = NULL;
   gs_unref_object GFile *tree_initramfs_path = NULL;
   gs_unref_object GFile *new_deployment_path = NULL;
-  gs_unref_object GFile *deploy_path = NULL;
-  gs_unref_object GFile *osdir = NULL;
   gs_free char *new_bootcsum = NULL;
-  gs_unref_object GFile *source_etc_path = NULL;
-  gs_unref_object GFile *source_etc_pristine_path = NULL;
   gs_unref_object OtConfigParser *bootconfig = NULL;
-  gs_free char *source_etc_kernel_args = NULL;
   gs_unref_ptrarray GPtrArray *new_deployments = NULL;
   int new_bootversion;
 
index 397aed25b49cd89d225c6d94ce67e35a396082ed..8aca8817d7f3031851ed952ec3f2d25297444403 100644 (file)
@@ -554,9 +554,7 @@ ot_admin_read_current_subbootversion (GFile         *sysroot,
   gs_unref_object GFile *ostree_dir = g_file_get_child (sysroot, "ostree");
   gs_free char *ostree_bootdir_name = g_strdup_printf ("boot.%d", bootversion);
   gs_unref_object GFile *ostree_bootdir = g_file_resolve_relative_path (ostree_dir, ostree_bootdir_name);
-  gs_free char *ostree_subbootdir_name = NULL;
   gs_unref_object GFile *ostree_subbootdir = NULL;
-  gs_unref_ptrarray GPtrArray *deployments_to_swap = NULL;
 
   if (!ot_gfile_query_symlink_target_allow_noent (ostree_bootdir, &ostree_subbootdir,
                                                   cancellable, error))
index 43dfe1e1ad9c733a0f8e7b98d952a737ee8dcd0c..15951a0ccb1d1a53247cc6b04a49f782b303fd37 100644 (file)
@@ -108,7 +108,6 @@ ot_bootloader_uboot_write_config (OtBootloader          *bootloader,
   gs_free char *config_contents = NULL;
   gs_free char *new_config_contents = NULL;
   gs_unref_ptrarray GPtrArray *new_lines = NULL;
-  gs_unref_ptrarray GPtrArray *tmp_args = NULL;
 
   /* This should follow the symbolic link to the current bootversion. */
   config_contents = gs_file_load_contents_utf8 (self->config_path, cancellable, error);
index 2bf26e2578d17bbc150f921a4fe648c97a27fe03..873e2c5dc15424f814b37c821f456c5c27bf46d2 100644 (file)
@@ -177,13 +177,9 @@ ostree_builtin_checkout (int argc, char **argv, OstreeRepo *repo, GCancellable *
   gboolean ret = FALSE;
   const char *commit;
   const char *destination;
-  gs_free char *existing_commit = NULL;
   gs_free char *resolved_commit = NULL;
-  gs_free char *tmp_destination = NULL;
-  gs_unref_object GFileInfo *symlink_file_info = NULL;
   gs_unref_object GFile *checkout_target = NULL;
   gs_unref_object GFile *checkout_target_tmp = NULL;
-  gs_unref_object GFile *symlink_target = NULL;
 
   context = g_option_context_new ("COMMIT DESTINATION - Check out a commit into a filesystem tree");
   g_option_context_add_main_entries (context, options, NULL);
index 77720da379bf4e6631fa1d467ca2c16558cc09e0..5f53e72db4f1c7fbdef610734093fc4135afebcf 100644 (file)
@@ -183,8 +183,6 @@ fsck_reachable_objects_from_commits (OstreeRepo            *repo,
   GHashTableIter hash_iter;
   gpointer key, value;
   gs_unref_hashtable GHashTable *reachable_objects = NULL;
-  gs_unref_variant GVariant *metadata = NULL;
-  gs_free guchar *computed_csum = NULL;
   guint i;
   guint mod;
   guint count;
index 105edfb75866266036d08e0e383926eed692a4e5..79a733367436d65f5be574fc383d97645eb4f25a 100644 (file)
@@ -246,8 +246,6 @@ ostree_builtin_ls (int argc, char **argv, OstreeRepo *repo, GCancellable *cancel
   const char *rev;
   int i;
   gs_unref_object GFile *root = NULL;
-  gs_unref_object GFile *f = NULL;
-  gs_unref_object GFileInfo *file_info = NULL;
 
   context = g_option_context_new ("COMMIT PATH [PATH...] - List file paths");
   g_option_context_add_main_entries (context, options, NULL);
index a2e6755ac2d8bba49f367a4153169232d927ca18..240659456ca08925c9baf3f26cf9558c6581dfe8 100644 (file)
@@ -61,8 +61,6 @@ import_one_object (OtLocalCloneData *data,
                    GError        **error)
 {
   gboolean ret = FALSE;
-  gs_unref_object GFile *content_path = NULL;
-  gs_unref_object GFileInfo *archive_info = NULL;
 
   if (objtype == OSTREE_OBJECT_TYPE_FILE)
     {
@@ -163,16 +161,12 @@ ostree_builtin_pull_local (int argc, char **argv, OstreeRepo *repo, GCancellable
   GHashTableIter hash_iter;
   gpointer key, value;
   gboolean transaction_resuming = FALSE;
-  gs_unref_hashtable GHashTable *objects = NULL;
   gs_unref_object GFile *src_f = NULL;
   gs_unref_object GFile *src_repo_dir = NULL;
   gs_unref_object GFile *dest_repo_dir = NULL;
-  gs_unref_object GFile *src_dir = NULL;
-  gs_unref_object GFile *dest_dir = NULL;
   gs_unref_hashtable GHashTable *refs_to_clone = NULL;
   gs_unref_hashtable GHashTable *commits_to_clone = NULL;
   gs_unref_hashtable GHashTable *source_objects = NULL;
-  gs_unref_hashtable GHashTable *objects_to_copy = NULL;
   OtLocalCloneData datav = { 0, };
   OtLocalCloneData *data = &datav;
 
index ffd5c78b9c2427b20e1ffd35bd3247eac463360a..6c60b6fd4e5a0773899bf27e7d1a96e9e06a2286 100644 (file)
@@ -38,8 +38,6 @@ ostree_builtin_rev_parse (int argc, char **argv, OstreeRepo *repo, GCancellable
   const char *rev = "master";
   int i;
   gs_free char *resolved_rev = NULL;
-  gs_unref_variant GVariant *variant = NULL;
-  gs_free char *formatted_variant = NULL;
 
   context = g_option_context_new ("REV - Output the target of a rev");
   g_option_context_add_main_entries (context, options, NULL);
index b7f2138e6acfe5fd3cb8ce3055eba0a8c4806cdc..c98000bf6ea44db46610a7cce7aef3a65e2dc902 100644 (file)
@@ -224,7 +224,6 @@ ostree_builtin_show (int argc, char **argv, OstreeRepo *repo, GCancellable *canc
       gboolean found = FALSE;
       if (!ostree_validate_checksum_string (rev, NULL))
         {
-          gs_unref_variant GVariant *variant = NULL;
           if (!ostree_repo_resolve_rev (repo, rev, FALSE, &resolved_rev, error))
             goto out;
           if (!print_object (repo, OSTREE_OBJECT_TYPE_COMMIT, resolved_rev, error))
index ec9b990fac71a72d822be1e68d88ddabeaa38fd6..0689a3cb24d5366cce3ece0cc233fc14635b9ad4 100644 (file)
@@ -328,7 +328,6 @@ ostree_builtin_trivial_httpd (int argc, char **argv, OstreeRepo *repo, GCancella
   const char *dirpath;
   OtTrivialHttpd appstruct = { 0, };
   OtTrivialHttpd *app = &appstruct;
-  gs_unref_object GFile *dir = NULL;
   gs_unref_object SoupServer *server = NULL;
   gs_unref_object GFileMonitor *dirmon = NULL;
 
index 48b3da70865ee9416ea0265dc3993d5621272ad6..958bf8e79430c1e9f14dc4ddbd45dc1586c7997b 100644 (file)
@@ -58,7 +58,6 @@ ostree_builtin_write_refs (int argc, char **argv, OstreeRepo *repo, GCancellable
     {
       const char *spc = strchr (line, ' ');
       gs_free char *ref = NULL;
-      gs_free guchar *rev = NULL;
 
       if (!spc || spc == line)
         {
index eae40a7571b007a1266f38e38ec2ca9b37414773..efa7f968cf7f3fe28c5e45647c80e1f7f3997681 100644 (file)
@@ -64,7 +64,7 @@ format_timestamp (guint64 timestamp)
 static void
 dump_indented_lines (const gchar *data)
 {
-  const char const* indent = "    ";
+  const char* indent = "    ";
   const gchar *pos;
 
   for (;;)